const getTodaySales = require("./getTodaySales/index");
const getSalesChart = require("./getSalesChart/index");
const getDiscountChart = require("./getDiscountChart/index");

// 云函数入口函数
exports.main = async (event, context) => {
    switch (event.type) {
        case "getTodaySales":
            return await getTodaySales.main(event, context);
        case "getSalesChart":
            return await getSalesChart.main(event, context);
        case "getDiscountChart":
            return await getDiscountChart.main(event, context);
    }
};